package com.xw.service;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface OrdersService {

    Map placeOrder(String userId, String videoId);

    Map toPay(HttpServletRequest request, String userId, String orderNo, Integer payType, String openId) throws Exception;

    Map findOrderByUserId(String userId, Integer status, Integer page, Integer limit);

    Map findOrderDetailByOrdersId(String userId, String ordersId);

    Map findByWhere(Integer page, Integer limit, String date, Integer ordersStatus,String videoName,String teacherName);

    Map delOrderById(String userId, String ordersId);

    Map findOrdersByPublishUserId(String userId, Integer page, Integer limit);

    Map findOrdersByPublishVideoIdJson(String videoId, Integer page, Integer limit);

    Map toBalancePay(String userId, String orderNo, String userPwd);

    Map findOrderByUserIdMP(String userId, Integer status, Integer page, Integer limit);

}
